import axios from 'axios';

export default class{

    //查询所有员工
    list(params){
        return axios.get(`http://localhost/WyhBanks`,{
            params:params
        })
    }

    //获取结算编号
    getMaxCode(){
        return axios.get(`http://localhost/WyhBanks/code`)
    }

    //批量添加分包付款
    addLaborSubcontract(subcontracts){
        return axios.post(`http://localhost/WyhBanks`,subcontracts)
    }

    //查询所有结算信息
    getSubcontracts(searchSubcontract){
        return axios.get(`http://localhost/WyhBanks/list`,{
            params:searchSubcontract
        })
    }
}